import { createRouter, createWebHistory } from 'vue-router';
import AnotherPage from './AnotherPage.vue'; // 假设你有一个 AnotherPage.vue 作为目标页面

const routes = [
  {
    path: '/',
    component: () => import('./App.vue')
  },
  {
    path: '/another-page',
    component: AnotherPage
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;